import TencentCloudChat from "@tencentcloud/chat";
import TUICore from "@tencentcloud/tui-core";

import App from './App'
import messages from './locale/index'


let i18nConfig = {
	locale: 'zh',
	messages
}
import * as Pinia from 'pinia';
import uvUI from '@/uni_modules/uv-ui-tools'
import {
	Request
} from '@/request/index'

import {
	createSSRApp
} from 'vue'
import {
	createI18n
} from 'vue-i18n'
const i18n = createI18n(i18nConfig)
export function createApp() {
	const app = createSSRApp(App)
	app.use(i18n)
	app.use(Pinia.createPinia());
	app.use(uvUI);
	Request(app);
	return {
		app,
		Pinia
	}
}